﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 夹具信息
    /// </summary>
    [SugarTable("cks_fixtureinfo")]
    [Table(Name = "cks_fixtureinfo")]
    public class CksFixtureinfo : BaseEntity
    {
        /// <summary>
        /// 主键 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary =true ,IsIdentity =true )]
        public int Id { get; set; }

        /// <summary>
        /// 夹具编号 
        /// </summary>
        public int FixtureId { get; set; }
        /// <summary>
        /// 夹具工装绑定的盖板码
        /// </summary>
        public string CoverCode {  get; set; } = string.Empty;

        /// <summary>
        /// 架子编号 
        /// </summary>
        public int ShelfId { get; set; }
        /// <summary>
        /// 单元格编号
        /// </summary>
        public int CellId {  get; set; }

        /// <summary>
        /// 位置编号 
        /// </summary>
        public int LocationId { get; set; }

        /// <summary>
        /// 状态 0=空,1=未钎,2=已焊,3=已焊NG,4=未放NG
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 使用次数 
        /// </summary>
        public int UsageCount { get; set; }

        /// <summary>
        /// 最大使用次数 
        /// </summary>
        public int MaxUsageCount { get; set; }

        /// <summary>
        /// 是否禁用 
        /// </summary>
        public bool Nullity { get; set; }

        /// <summary>
        /// 备注 
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime Created { get; set; } = DateTime.Now;

        

        public DateTime UpdateTime { get; set; } = DateTime.Now;
        public string BottomPlateCode { get; set; } = string.Empty;
    }
}